﻿/***************************************************************************
 *		ElGee Google Chart API Helper
 *		Copyright(C) 2011 by Laurent Geffroy lgeffroy@gmail.com
 * 
 *		This program is free software; you can redistribute it and/or 
 *		modify it under the terms of the GNU General Public License as
 *		published by the Free Software Foundation; either version 2 of 
 *		the License, or (at your option) any later version.
 *		
 *		This program is distributed WITHOUT ANY WARRANTY; without even the
 *		implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *		See the GNU General Public License for more details.
 *	
 *      For particular licensing, please contact me at lgeffroy@gmail.com
 *****************************************************************************/

using System.Runtime.Serialization;

namespace ElGee.Google.Charts
{
    /// <summary>
    /// External Chart DataSource Base
    /// </summary>
    [DataContract]
    public class ExternalChartDataSourceBase
    {
        /// <summary>
        /// Gets or sets the data source.
        /// </summary>
        /// <value>The data source.</value>
        [DataMember]
        public ChartDataSource DataSource { get; set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        [DataMember]
        public string Type { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ExternalChartDataSourceBase"/> class.
        /// </summary>
        /// <param name="source">The source.</param>
        /// <param name="type">The type.</param>
        public ExternalChartDataSourceBase(ChartDataSource source, string type)
        {
            DataSource = source;
            Type = type;
        }
    }
}
